package com.ruoyi.shanghuliebiao2.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shanghuliebiao2.mapper.CheDrawalMapper;
import com.ruoyi.shanghuliebiao2.domain.CheDrawal;
import com.ruoyi.shanghuliebiao2.service.ICheDrawalService;

/**
 * 商家提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
@Service
public class CheDrawalServiceImpl implements ICheDrawalService 
{
    @Autowired
    private CheDrawalMapper cheDrawalMapper;

    /**
     * 查询商家提现记录
     * 
     * @param id 商家提现记录主键
     * @return 商家提现记录
     */
    @Override
    public CheDrawal selectCheDrawalById(Long id)
    {
        return cheDrawalMapper.selectCheDrawalById(id);
    }

    /**
     * 查询商家提现记录列表
     * 
     * @param cheDrawal 商家提现记录
     * @return 商家提现记录
     */
    @Override
    public List<CheDrawal> selectCheDrawalList(CheDrawal cheDrawal)
    {
        return cheDrawalMapper.selectCheDrawalList(cheDrawal);
    }

    /**
     * 新增商家提现记录
     * 
     * @param cheDrawal 商家提现记录
     * @return 结果
     */
    @Override
    public int insertCheDrawal(CheDrawal cheDrawal)
    {
        return cheDrawalMapper.insertCheDrawal(cheDrawal);
    }

    /**
     * 修改商家提现记录
     * 
     * @param cheDrawal 商家提现记录
     * @return 结果
     */
    @Override
    public int updateCheDrawal(CheDrawal cheDrawal)
    {
        return cheDrawalMapper.updateCheDrawal(cheDrawal);
    }

    /**
     * 批量删除商家提现记录
     * 
     * @param ids 需要删除的商家提现记录主键
     * @return 结果
     */
    @Override
    public int deleteCheDrawalByIds(Long[] ids)
    {
        return cheDrawalMapper.deleteCheDrawalByIds(ids);
    }

    /**
     * 删除商家提现记录信息
     * 
     * @param id 商家提现记录主键
     * @return 结果
     */
    @Override
    public int deleteCheDrawalById(Long id)
    {
        return cheDrawalMapper.deleteCheDrawalById(id);
    }
}
